From: Paul Eggert Date: Wed, 8 Jun 2011 19:07:55 +0000 (-0700) Subject: * alloc.c (inhibit_garbage_collection): Set gc_cons_threshold to max value. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~3446^2~64 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=d56128f361fd71f2f8f46c2cf093f759351399c1;p=emacs.git * alloc.c (inhibit_garbage_collection): Set gc_cons_threshold to max value. Previously, this ceilinged at INT_MAX, but that doesn't work on 64-bit machines. --- diff --git a/src/ChangeLog b/src/ChangeLog index 87cde2f84f0..8d9f64fd78b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -14,6 +14,9 @@ These were 'int' variables that could overflow on 64-bit hosts; they were never used, so remove them instead of repairing them. (nzombies, ngcs, max_live, max_zombies): Now EMACS_INT, not 'int'. + (inhibit_garbage_collection): Set gc_cons_threshold to max value. + Previously, this ceilinged at INT_MAX, but that doesn't work on + 64-bit machines. * alloc.c (Fmake_bool_vector): Don't assume vector size fits in int. (allocate_vectorlike): Check for ptrdiff_t overflow. diff --git a/src/alloc.c b/src/alloc.c index dd2e5f4b6ad..e04f60baf03 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -4827,9 +4827,8 @@ int inhibit_garbage_collection (void) { int count = SPECPDL_INDEX (); - int nbits = min (VALBITS, BITS_PER_INT); - specbind (Qgc_cons_threshold, make_number (((EMACS_INT) 1 << (nbits - 1)) - 1)); + specbind (Qgc_cons_threshold, make_number (MOST_POSITIVE_FIXNUM)); return count; }